/*
 *  This project is mainly focused on developing more and more utilisties
 *  like mail utilities, dao utilities, ldap utilities, file utilities,
 *  file importing utilities etc. for easy coding in java.
 *
 *  Copyright (C) 2012  R.Satheesh Kumar alias GURU
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jsmart.util.core;

/**
 * This interface is used to perform the business logic code in the
 * data
 * @param <T>
 * @param <S>
 * @since v1.0
 */
public interface AbstractCallback<T, S> {
    /**
     * This method is used for injecting the business logic code that
     * must be affected in the data object.
     * @param s
     * @return
     * @throws UtilsException
     */
    public T doInCallback(S s) throws UtilsException;
}
